# @summary A short summary of the purpose of this class
#
# A description of what this class does
#
# @example
#   include lzu::ipv6::service
class lzu::ipv6::service {
  file { '/usr/local/sbin/careful_network_manager_restart.sh':
    ensure  => 'file',
    mode    => '0750',
    owner   => 'root',
    group   => 'root',
    content => "nmcli con reload && nmcli networking off; sleep 1; nmcli networking on"
  }
  service { 'NetworkManager':
    ensure     => 'running',
    enable     => true,
    restart    => '/usr/local/sbin/careful_network_manager_restart.sh &',
    hasstatus  => true,
    hasrestart => false,
    require    => File['/usr/local/sbin/careful_network_manager_restart.sh']
  }
}
